/*
 * Created on 2006-5-15 18:49:20
 */
package cn.com.sbell.vss.csg.vap.bean;

public class AlarmConfiguration{
	
	public boolean connectionDetectionEnabled=false;
	public boolean diskFullAlarmEnabled=true;
	public Integer diskFullHighThreshold=new Integer(0);
	public Integer diskFullLowThreshold=new Integer(0);
	public boolean diskErrorAlarmEnabled=false;
	
	public int alarmPreRecordTime=0;
	public int alarmRecordTime=0;
	public int alarmOutputTime=0;
	
	//以下三个参数对DVS整体设置.
	public int photoResolution=0;//告警抓拍:抓图的分辨率 0 . QCIF 1 . CIF 2 . D1，默认为CIF 如果VS没有告警抓功能则为-1
	public int photoQuality=0;//告警抓拍:photoQuality,抓图的质量，0 . 最好1 . 较好2 . 一般默认为较好 如果VS没有告警抓功能则为-1
	public int shootTimes=0;//告警抓拍:每次触发抓拍次数，1-16，默认为1 如果VS没有告警抓功能则为-1
	public String imageFormat="JPEG"; //告警抓拍的图片格式：默认：JPEG，可选：BMP

	public GPINAlarm[] gpinAlarm = new GPINAlarm[0];
	public GPOUTAlarm[] gpoutAlarm = new GPOUTAlarm[0];
	public VideoAlarm[] videoAlarm = new VideoAlarm[0];
	
	public static class GPINAlarm{
		public int channelNumber=0;
		public boolean gpinAlarmEnable = false;
		public int gpinAlarmStatus=0;
		public AlarmOutput[] gpinAlarmOutput = new AlarmOutput[0];
		public int[] gpinAlarmRecord = new int[0];
		public int[] gpinAlarmShoot = new int[0] ;//告警抓拍:报警触发的抓拍通道号(海康的需根据前台数字进行转换,按位设置)
	}
	
	public static class GPOUTAlarm {
		public int channelNumber=0;
		public String gpoutDeviceName="";
		public int gpoutType=0;
		public Schedule gpoutActivatedTime;
	}
	
	public static class VideoAlarm{
		public int videoId=0;
		public boolean videoLoseAlarmEnabled = false;
		public AlarmOutput[] videoLoseAlarmOutput = new AlarmOutput[0];

		public boolean hideDetectionAlarmEnabled = false;
		public Schedule hideDetectionAlarmTime;
		public int hideDetectionX=0;
		public int hideDetectionY=0;
		public int hideDetectionWidth=0;
		public int hideDetectionHeight;
		public AlarmOutput[] hideDetectionAlarmOutput = new AlarmOutput[0];
		
		public boolean motionDetectionAlarmEnabled = false;
		public Schedule motionDetectionAlarmTime;
		public byte[] motionDetectionBlocks = new byte[0];
		public int motionDetectionFrequency=0;
		public int motionDetectionSensitivity=0;
		public AlarmOutput[] motionDetectionAlarmOutput = new AlarmOutput[0];
		public int[] motionDetectionAlarmRecord = new int[0];
		public int[] motionDetectionAlarmShoot = new int[0];//告警抓拍:移动侦测触发的抓拍通道号(目前海康只是触发当前通道抓图)
	}

	public static class AlarmOutput{
		public int channelNumber=0;
		public int alarmState=0;
	}
	
	public static void main(String[] args){
		System.out.println(new AlarmConfiguration());
	}
}
